package com.entertainment.ticketing.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
public class CreateOrderRequest {
    @NotNull
    private Long userId;

    @NotNull
    private Long eventId;

    @NotEmpty
    private List<Long> ticketIds;

    @NotBlank
    @Size(max = 50)
    private String contactName;

    @NotBlank
    @Size(max = 20)
    private String contactPhone;

    @Email
    @Size(max = 100)
    private String contactEmail;

    @Size(max = 20)
    private String paymentMethod; // ALIPAY/WECHAT/BANK (模拟)
}